package com.jlwl.houseservice.vo;

import lombok.Data;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 订单创建VO
 */
@Data
public class OrderCreateVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 服务ID
     */
    @NotNull(message = "服务ID不能为空")
    private Integer serviceId;

    /**
     * 预约服务时间
     */
    @NotNull(message = "预约时间不能为空")
    @Future(message = "预约时间必须是未来时间")
    private LocalDateTime serviceTime;

    /**
     * 服务地址详情
     */
    @NotBlank(message = "服务地址不能为空")
    private String addressDetail;

    /**
     * 联系人姓名
     */
    @NotBlank(message = "联系人姓名不能为空")
    private String contactName;

    /**
     * 联系人电话
     */
    @NotBlank(message = "联系人电话不能为空")
    private String contactPhone;

    /**
     * 特殊要求
     */
    private String specialRequirements;
} 